package com.example.prison.service;

import com.example.prison.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【user_info】的数据库操作Service
* @createDate 2023-05-26 11:28:10
*/
public interface UserInfoService extends IService<UserInfo> {

    PageInfo<UserInfo> get(int pageNumber, int pageSize,String userName);

    int add(UserInfo user);

    void delete(Integer[] ids);

    int update(UserInfo user, Integer id);

    UserInfo getById(Integer id);

    PageInfo<UserInfo> getByName(int pageNumber, int pageSize, String name);

    UserInfo getOneByName(String name);

}
